<?php
require_once('merchant_fns.php');
check_merchant();
echo "<h2>管理菜品</h2>";
$did = $_GET['did'];
echo "<a href=\"merchant_update_dishes_form.php?did={$did}\">修改菜品信息</a><br>";
echo "<a href=\"merchant_delete_dishes.php?did={$did}\">删除菜品</a><br>";
echo "<form action=\"merchant_recommend_sold_dishes.php\" method=\"post\">
        <input type=\"hidden\" name=\"did\" value=\"{$did}\">
        <td>
        <input type=\"radio\" name=\"reced\" value=\"1\" checked>推荐
        <input type=\"radio\" name=\"reced\" value=\"0\">取消推荐
        </td>
        <br>
        <td>
        <input type=\"radio\" name=\"state\" value=\"1\" checked>在售
        <input type=\"radio\" name=\"state\" value=\"0\">售罄
        </td>
        <br>
        <input type=\"submit\" value=\"确认\">
        </form>";

?>